package com.foxit.adapp;

public class JsonAD {  
    public JsonAD() {  
        super();  
    }  
  
    public JsonAD(String img, String redirect) {  
        super();  
        this.img = img;  
        this.redirect = redirect;  
        int e= img.indexOf('?');
        int f= img.lastIndexOf('/',e);
        this.zip = img.substring(f,e);
    }  
  
    String img;  
    String redirect;  
    String zip;

    public String getImg() {  
        return img;  
    }  
  
    public String getRedirect() {  
        return redirect;  
    }  

    public String getZip() {  
        return zip;  
    }  

    public void setImg(String img) {  
        this.img = img;  
    }  
  
    public void setZip(String zip) {  
        this.zip = zip;  
    }  
  
    public void makeZip() {
        int e= img.indexOf('?');
        int f= img.lastIndexOf('/',e);
        zip = img.substring(f,e);
    }
    public void setRedirect(String redirect) {  
        this.redirect = redirect;  
    }  
  
  
    @Override  
    public String toString() {  
        return "Tmp [ img=" + img + ", redirect=" + redirect + "]";  
    }  
}
